<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    
</body>
<script>
    var dog = {
        dogName: "lily",
        weight: "20kg",
        color: "black",
        age: 2,
        jump:function(){
            if(this.dog >= 2){
                console.log(this.dogName + "can jump");
            }
        }
    }

    /**
     *定义一个cat对象，属性有 名字，品种，体重 
     * 
     * 
     * 
     */

    var cat = {
        catName:"sb",
        pinZhong:"nb",
        tiZhong:"20kg",
    }
</script>
</html>